<template>
  <div>
      <column-list :list="testData"></column-list>
  </div>
</template>

<script lang='ts'>
import {defineComponent} from 'vue'
import ColumnList,{ColumnListPros} from '@/components/ColumnList/ColumnList.vue'
import {testColumnData,testPostsData} from '@/testDate/ColumnDate/index'

import {useStore} from 'vuex'
import {GlobalDataProps} from '@/store/index'

const testData = testColumnData
export default defineComponent({
  components: {
    ColumnList
  },
  setup(){

    // 为了能够更好的提示，我们这里使用泛型
    const store = useStore<GlobalDataProps>()
    store.state.columns

    return {
      testData
    }
  }
})
</script>

<style>

</style>